
capture log close
log using "Meng_Analysis.txt", replace t

***********MANUSCRIPT FIGURES**********
use "Meng_parties.dta"

*FIGURE 1*
histogram yrsinpower if yrsinpower<100, freq  bcolor(gs10) addlabels xaxis(1 2)  ylabel(0(10)50, grid)  xlabel( 22.8 "mean"  3.5 "-1 s.d." 42.1 "+1 s.d.", axis(2) grid gmax) xtitle("", axis(2)) 

*FIGURE 2*
histogram number_leaders if number_leaders<10, freq start(1) bcolor(gs10) addlabels xaxis(1 2)  ylabel(0(10)90, grid)  xlabel( , axis(2) grid gmax) xtitle("", axis(2)) 

*FIGURE 3*
histogram yrs_founder if yrs_founder<70, freq bcolor(gs10) addlabels xaxis(1 2)  ylabel(0(10)90, grid)  xlabel( 11.1 "mean"   28.5 "+1 s.d."  , axis(2) grid gmax) xtitle("", axis(2)) 

********APPENDIX FIGURES**************
use  "Meng_parties_Archigos.dta"
*APPENDIX FIGURE 1*
histogram yrs_founder if yrs_founder<70, freq bcolor(gs10) addlabels xaxis(1 2)  ylabel(0(10)40, grid)  xlabel(  , axis(2) grid gmax) xtitle("", axis(2)) 

use  "Meng_parties_GWF.dta"
*APPENDIX FIGURE 2*
histogram yrs_founder if yrs_founder<70, freq bcolor(gs10) addlabels xaxis(1 2)  ylabel(0(10)20, grid)  xlabel(  , axis(2) grid gmax) xtitle("", axis(2)) 

**********MANUSCRIPT TABLE************

use "Meng_outcomes.dta"

ttest mean_growth, by(strong)
ttest mean_coups, by(strong)
ttest mean_onset, by(strong)

*********APPENDIX TABLE***************

use "Meng_outcomes.dta"

reg mean_growth strong mean_gdpcap mean_oilpc mean_ongoingwar mean_polity
outreg2 using table2.doc, aster(coef)  alpha(0.01, 0.05, 0.10) dec(3)  replace

reg mean_coups strong mean_gdpcap mean_oilpc mean_lpopl mean_ethfrac
outreg2 using table2.doc, aster(coef)  alpha(0.01, 0.05, 0.10) dec(3)  append

reg mean_onset strong mean_gdpcap mean_oilpc mean_lpopl mean_ethfrac 
outreg2 using table2.doc, aster(coef)  alpha(0.01, 0.05, 0.10) dec(3)  append


log close
